Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functionality to re-create op with new variadic argument list. #101

Merged
merged 6 commits into from
Jul 17, 2024

Conversation

tsymalla
Copy link
Contributor

Since we cannot update varargs directly, and often need to re-create the op, add a small helper that re-creates a given op with a new variadic argument list and invalidates the current op.

Since we cannot update varargs directly, and often need to re-create the
op, add a small helper that re-creates a given op with a new variadic
argument list and invalidates the current op.
@tsymalla-AMD tsymalla-AMD requested a review from nhaehnle July 17, 2024 09:37
@tsymalla-AMD
Copy link
Contributor

tsymalla-AMD commented Jul 17, 2024

Not using the create<> method of the dialects builder here, since we cannot directly derive the correct types for the passed arguments (we not always pass in a Value *).
I thought about adding a IPGuard in the new method, but maybe that's something the caller should handle.

lib/TableGen/Operations.cpp Outdated Show resolved Hide resolved
lib/TableGen/Operations.cpp Outdated Show resolved Hide resolved
lib/TableGen/Operations.cpp Outdated Show resolved Hide resolved
lib/TableGen/Operations.cpp Outdated Show resolved Hide resolved
lib/TableGen/Operations.cpp Outdated Show resolved Hide resolved
Copy link
Member

@Flakebi Flakebi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with the nits inline fixed

lib/TableGen/GenDialect.cpp Outdated Show resolved Hide resolved
lib/TableGen/Operations.cpp Outdated Show resolved Hide resolved
lib/TableGen/GenDialect.cpp Outdated Show resolved Hide resolved
@tsymalla-AMD tsymalla-AMD merged commit ec8493d into GPUOpen-Drivers:dev Jul 17, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants